<?php slot('sub', $sub); ?>

<div class="center">
    <div id="center_conteiner" class="clearfix">
        <div class="center_sub_conteiner">

            <div class="center_block">
                <div class="header_center_block"><span>City</span></div>
                
                <div class="pages_list">
                    <ul>
                        <li><<</li>
                        <li class='active'>1</li>
                        <li>>></li>
                    </ul>
                </div>
                
                <div class="users_title">
                    <div class="users_title_id">id</div>
                    <div class="users_title_title">English</div>
                    <div class="users_title_first_name">Russian</div>
                    <div class="users_title_status">Hebrew</div>
                    <div class="users_title_five">Country</div>
                    <div class="add_new_user"><a href="<?php echo url_for('addcity'); ?>">Add</a></div>
                </div>
                
                <?php
                foreach ($city as $c) {        
                    $country = tblCountryTable::getInstance()->findByDql('id=?', $c->getCountryId())->getFirst();
                    echo '<div class="user_line">'.
                    '<div class="user_line_id">'.$c->getId().'</div>' .
                    '<div class="user_line_title">'.$c->getNameEn().'</div>'.
                    '<div class="user_line_name">'.$c->getNameRu().'</div>'.
                    '<div class="user_line_status">'.$c->getNameHe().'</div>'.
                    '<div class="user_line_five">'.$country->getNameEn().'</div>'. 
                    '<div class="user_line_delete_button"><a href="'.url_for('editcity', array('city_id' => $c->getId())).'">Edit</a></div>'.
                    '</div>';
                }
                ?>
                
                <div class="pages_list">
                    <ul>
                        <li><<</li>
                        <li class='active'>1</li>
                        <li>>></li>
                    </ul>
                </div>
                
            </div>
        </div>
    </div>
</div>

